package IO;

import java.io.FileNotFoundException;

public class Students {
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) throws FileNotFoundException {
        if(age<0 || age>120){
            throw new FileNotFoundException();
        }
        this.age = age;
    }
}
